package com.wteam.PoJo.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("用户编辑资料")
@Data
public class UpUserDTO {

    @NotEmpty
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    @NotEmpty
    @ApiModelProperty(value = "简介",required = true)
    private String description;


    @ApiModelProperty(value = "头像")
    private MultipartFile file;

    @NotNull
    @ApiModelProperty(value = "性别，0为女，1为男",required = true)
    private Integer gender;

    @NotEmpty
    @ApiModelProperty(value = "ip地址",required = true)
    private String ip;

}
